package org.fund.base_service.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.fund.common.model.FundEstimate;
import org.fund.common.model.FundValue;
import org.fund.common.model.FundValueEntity;

import java.util.List;

/**
 * @Author:
 * @Date: 2022/3/23 11:18
 * @Description:
 */
@Mapper
public interface FundValueMapper {

    /**
     * 批量插入
     * @param funds
     */
    void batchInsert(@Param("funds") List<FundValueEntity> funds);

    /**
     * 根据日期查出所有的净值
     * @param
     * @return
     */
    List<FundValueEntity> queryByFundCodeAndDate(@Param("date") String date);

    void batchDeleteByDate(@Param("date") String date);
}
